; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=slp-vectorizer -opaque-pointers < %s | FileCheck %s

target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define void @test(ptr %arg, ptr %arg1, ptr %arg2) {
; CHECK-LABEL: @test(
; CHECK-NEXT:    [[TMP:%.*]] = getelementptr inbounds i8, ptr [[ARG2:%.*]], i64 128
; CHECK-NEXT:    [[TMP3:%.*]] = getelementptr inbounds ptr, ptr [[ARG1:%.*]], i64 -1
; CHECK-NEXT:    [[TMP4:%.*]] = getelementptr inbounds ptr, ptr [[ARG:%.*]], i64 0
; CHECK-NEXT:    [[TMP5:%.*]] = getelementptr inbounds ptr, ptr [[ARG]], i64 1
; CHECK-NEXT:    store ptr [[TMP3]], ptr [[TMP4]], align 8
; CHECK-NEXT:    store ptr [[TMP]], ptr [[TMP5]], align 8
; CHECK-NEXT:    ret void
;
  %tmp = getelementptr inbounds i8, ptr %arg2, i64 128
  %tmp3 = getelementptr inbounds ptr, ptr %arg1, i64 -1
  %tmp4 = getelementptr inbounds ptr, ptr %arg, i64 0
  %tmp5 = getelementptr inbounds ptr, ptr %arg, i64 1
  store ptr %tmp3, ptr %tmp4, align 8
  store ptr %tmp, ptr %tmp5, align 8
  ret void
}
